package com.imooc.sell.dao;

import com.imooc.sell.dataobject.ProductCategory;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import javax.transaction.Transactional;
import java.util.List;

/**
 * 商品类目处理
 *
 * @author tianli
 */
public interface ProductCategoryDao extends JpaRepository<ProductCategory, Integer>, JpaSpecificationExecutor<ProductCategory> {

    List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);

    void deleteByCategoryTypeIn(List<Integer> categoryTypeList);

}
